﻿@model IEnumerable<LabChecker.Models.Task>

@{
    ViewBag.Title = ViewBag.SubjectName;
}

<h2>@Html.ActionLink("Subjects", "Index", "Subject") -> @ViewBag.SubjectName</h2>

<table>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(" ", "Edit", new { id = item.Id }, new { @class = "edit_link" })
        </td>        
        <td>
            @Html.ActionLink(item.Description.Title, "Index", "TestCase", new { taskId=item.Id }, null)
        </td>
        <td>
            @Html.ActionLink(" ", "Delete", new { id=item.Id }, new { @class = "delete_link" })
        </td>
    </tr>
}
</table>

@*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@
